package com.globagames.strategicgames.model
{
	import com.globagames.isometric.core.model.SimpleObject;
	[Managed]
	[RemoteClass(alias="com.globagames.dogs.model.Soldier")]
	public class Soldier
	{
		// PERSITANT ATTRIBUTS
		public var soldierId:String;
		public var name:String;
		public var isCaptain:Boolean=false;
		public var profileCode:String;
		
		
		public var soldierIso:SimpleObject;
		public var _profile:XML;
		public var selected:Boolean;
		
		public function Soldier()
		{
		}
		public function clone():Soldier {
			var s:Soldier = new Soldier();
			s.soldierId = soldierId;
			s.name = name;
			s.isCaptain = isCaptain;
			s.profileCode = profileCode;			
			s._profile = _profile;
			s.selected = selected;
			return s;
		}
		public function set profile(xml:XML):void {
			_profile = xml;
			profileCode = _profile.@code;
		}
		public function get profile():XML {
			return _profile;
		}

	}
}